from typing import Any, Dict

import requests


def call_api(input_json: Dict[str, Any], api_key) -> Dict[str, Any]:
    input_json["appid"] = api_key
    response = requests.get("https://www.wolframalpha.com/api/v1/result.jsp", params=input_json)

    if response.status_code == 200:
        return response.text
    else:
        return {"status_code": response.status_code, "text": response.text}

# query = "1+1"
